<template>
  <div id="params-info">
    <div class="title">参数信息</div>
    <div class="params">
      <table v-for="(item, index) in paramsInfo.sizes" :key="index" class="sizes">
        <tr v-for="(iitem, index) in item" :key="index">
          <td v-for=" (iiitem,index) in iitem" :key="index">{{iiitem}}</td>
        </tr>
      </table>
      <table class="infos">
        <tr v-for="(item, index) in paramsInfo.infos" :key="index">
          <td>{{item.key}}</td>
          <td class="infos-value">{{item.value}}</td>
        </tr>
      </table>
    </div>
    <div class="imglist">
      <img v-for="(item, index) in paramsInfo.images" :src="item" alt="" :key="index">
    </div>
  </div>
</template>

<script>
  export default {
    name: "DetailParamsInfo",
    props:{
      paramsInfo:{
        type:Object,
        default(){
          return {}
        }
      }
    },

  }
</script>

<style scoped>
  #params-info{
    padding: 10px 8px 20px;
    border-bottom: 5px solid #f2f5f8;
    font-size: 14px;
  }
  .title{
    margin: 10px 0;
    font-size: 15px;
    color: #50b7c1;
  }
  #params-info table{
    width: 100%;
  }
  .sizes td, .infos td{
    height: 35px;
    line-height: 35px;
    border-bottom: 1px solid rgba(100,100,100,.1);
  }
  .infos td{
    width: 85px;
  }
  .infos-value{
    color: #eb4868;
  }
  .imglist img{
    width: 100%;
  }
</style>